package com.apes.scm.account.method;

import lombok.Data;

/**
 * 功能：批
 *
 * @author xul
 * @create 2018-03-14 16:54
 */
@Data
public class Batch<E> {

    private E entity;

    private double qty = 0.0;  //数值

    /*
     * 功能：更新数量
     */
    public void changeQty(double qty) {
        this.qty += qty;
        if (this.qty < 0) throw new RuntimeException("数值不允许小于零！");
    }
}
